<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>wave code prettifier</title>
		<link type="text/css" rel="stylesheet" href="css/prettify.css"/>
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
		<script type="text/javascript" src="scripts/jquery.textarea.js"></script>
		<script type="text/javascript" src="scripts/prettify.js"></script>
		<script type="text/javascript" src="scripts/lang-css.js"></script>
		<script type="text/javascript" src="scripts/lang-hs.js"></script>
		<script type="text/javascript" src="scripts/lang-lisp.js"></script>
		<script type="text/javascript" src="scripts/lang-lua.js"></script>
		<script type="text/javascript" src="scripts/lang-sql.js"></script>
		<script type="text/javascript" src="scripts/lang-vb.js"></script>
		<script type="text/javascript">
			var update = function(raw) {
				var data = raw.replace(/</g, '&lt;').replace(/>/g, '&gt;');
				$('.prettyprint').html(data).show('slow');
				prettyPrint();
			};
			$(document).ready(function() {
				$('.prettyprint').hide();
				$('#source')
					.tabby({tabString: '    '})
					.keyup(function(event) {
						update($(this).val());
					});
				$('button').click(function() {
					var style = 'prettyprint ' + $(this).val();
					$('.prettyprint').removeClass().addClass(style);
					update($('#source').val());
				}).change();
			});
		</script>
	</head>
	<body>
		<h1>wave code prettifier</h1>
		<p>Paste code, or type inside the area. Use <strong>&lt;tab&gt;</strong>s (4 spaces) for readability. <strong><a  href="http://code.google.com/p/google-code-prettify/">google code prettify</a></strong> will guess the syntax automatically. <strong>Wrong guess</strong>? press button to help.</p>
		<p>
			<button value="">Auto</button>
			<button value="lang-sh">Bash</button>
			<button value="lang-c">C</button>
			<button value="lang-cc">C++</button>
			<button value="lang-cs">C#</button>
			<button value="lang-el">Lisp</button>
			<button value="lang-css">CSS</button>
			<button value="lang-hs">Haskell</button>
			<button value="lang-java">Java</button>
			<button value="lang-js">Javascript</button>
			<button value="lang-lua">LUA</button>
			<button value="lang-pl">Perl</button>
			<button value="">PHP</button>
			<button value="lang-py">Python</button>
			<button value="lang-sql">SQL</button>
			<button value="lang-vb">VBasic</button>
			<button value="lang-html">(X)HTML, XML, XSLT</button>
		</p>
		<textarea id="source" rows="8" cols="80"></textarea>
		<pre id="code" class="prettyprint"></pre>
	</body>
</html>